package mapper.marketingMapper;

import entity.marketingEntity.SpecialMarketingCondition;
import entity.marketingEntity.Specialmarketing;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpecialmarketingMapper {
    List<Specialmarketing> selectAll(SpecialMarketingCondition condition);
    int deleteByPrimaryKey(Integer specialmarketing_id);

    int insert(Specialmarketing record);

    int insertSelective(Specialmarketing record);

    Specialmarketing selectByPrimaryKey(Integer specialmarketing_id);

    int updateByPrimaryKeySelective(Specialmarketing record);

    int updateByPrimaryKey(Specialmarketing record);
    int updateSpecialMarkingRecommend(@Param("id") Integer id, @Param("recommend")  Integer recommend);

    int updateSpecialMarkingSort(@Param("id") Integer id,@Param("sort")  Integer sort);
}